package com.srit.map.business.bean;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CompanyDescription {
	private int id;
	private String name;
	private String registered_fund; //注册资金
	private String registered_dateStr;//注册时间
	private Date registered_date;
	private float post_long;  //x坐标
	private float post_lat;	//y坐标
	private String address; //地址 经营场所
	private String area;	//辖区
	private String company_type; //企业类型、经济类型
	private String business_type; //所属行业
	private String law_person;//法人
	private String bus_way;//公车路线
	private String web;//  网站路径
	private String map_way;//地图链接
	private String company_property; //企业属性500+？
	private String fund;//企业资金
	private String currency;
	private String certificate;
	
	DateFormat format = new SimpleDateFormat("yyyy.MM.dd");
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRegistered_fund() {
		return registered_fund;
	}
	public void setRegistered_fund(String registered_fund) {
		this.registered_fund = registered_fund;
	}
	public String getRegistered_dateStr() {
		return registered_dateStr;
	}
	public void setRegistered_dateStr(String registered_dateStr) {
		this.registered_dateStr = registered_dateStr;
	}
	
	public Date getRegistered_date() {
		return registered_date;
	}
	public void setRegistered_date(Date registered_date) {
		this.registered_date = registered_date;
	}
	public float getPost_long() {
		return post_long;
	}
	public void setPost_long(float post_long) {
		this.post_long = post_long;
	}
	public float getPost_lat() {
		return post_lat;
	}
	public void setPost_lat(float post_lat) {
		this.post_lat = post_lat;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getCompany_type() {
		return company_type;
	}
	public void setCompany_type(String company_type) {
		this.company_type = company_type;
	}
	public String getBusiness_type() {
		return business_type;
	}
	public void setBusiness_type(String business_type) {
		this.business_type = business_type;
	}
	
	public String getLaw_person() {
		return law_person;
	}
	public void setLaw_person(String law_person) {
		this.law_person = law_person;
	}
	public String getBus_way() {
		return bus_way;
	}
	public void setBus_way(String bus_way) {
		this.bus_way = bus_way;
	}
	public String getWeb() {
		return web;
	}
	public void setWeb(String web) {
		this.web = web;
	}
	public String getMap_way() {
		return map_way;
	}
	public void setMap_way(String map_way) {
		this.map_way = map_way;
	}
	public String getCompany_property() {
		return company_property;
	}
	public void setCompany_property(String company_property) {
		this.company_property = company_property;
	}
	public String getFund() {
		return fund;
	}
	public void setFund(String fund) {
		this.fund = fund;
	}
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public String getCertificate() {
		return certificate;
	}
	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}
	public void updateDate() throws ParseException{
		if(registered_dateStr!=null&& !registered_dateStr.equals(""))
			this.registered_date=format.parse(registered_dateStr);
	}
	
}
